package com.passionfruit.module.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author weirdor
 * @since 2017-11-06
 */
@TableName("blog_article")
public class BlogArticle extends Model<BlogArticle> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 文章标识
     */
	@TableField("article_key")
	private String articleKey;
    /**
     * 文章标题
     */
	@TableField("article_title")
	private String articleTitle;
    /**
     * 文章作者
     */
	@TableField("article_author")
	private String articleAuthor;
    /**
     * 文章简介
     */
	@TableField("article_info")
	private String articleInfo;
    /**
     * 文章封面
     */
	@TableField("article_cover")
	private String articleCover;
    /**
     * 原文链接
     */
	@TableField("article_origin")
	private String articleOrigin;
    /**
     * 文章排序
     */
	@TableField("article_sort")
	private Integer articleSort;
    /**
     * 文章内容
     */
	@TableField("article_content")
	private String articleContent;
    /**
     * 浏览次数
     */
	@TableField("article_visit")
	private Integer articleVisit;
    /**
     * 文章状态
     */
	@TableField("article_status")
	private Integer articleStatus;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Integer createTime;
    /**
     * 更新时间
     */
	@TableField("update_time")
	private Integer updateTime;
    /**
     * 删除时间
     */
	@TableField("delete_time")
	private Integer deleteTime;

	@TableField(exist=false)
	private Integer cateId;

	@TableField(exist=false)
	private String cateNames;


	public String getCateNames() {
		return cateNames;
	}

	public void setCateNames(String cateNames) {
		this.cateNames = cateNames;
	}

	public void setCateId(Integer cateId) {
		this.cateId = cateId;
	}

	public Integer getCateId() {
		return cateId;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getArticleKey() {
		return articleKey;
	}

	public void setArticleKey(String articleKey) {
		this.articleKey = articleKey;
	}

	public String getArticleTitle() {
		return articleTitle;
	}

	public void setArticleTitle(String articleTitle) {
		this.articleTitle = articleTitle;
	}

	public String getArticleAuthor() {
		return articleAuthor;
	}

	public void setArticleAuthor(String articleAuthor) {
		this.articleAuthor = articleAuthor;
	}

	public String getArticleInfo() {
		return articleInfo;
	}

	public void setArticleInfo(String articleInfo) {
		this.articleInfo = articleInfo;
	}

	public String getArticleCover() {
		return articleCover;
	}

	public void setArticleCover(String articleCover) {
		this.articleCover = articleCover;
	}

	public String getArticleOrigin() {
		return articleOrigin;
	}

	public void setArticleOrigin(String articleOrigin) {
		this.articleOrigin = articleOrigin;
	}

	public Integer getArticleSort() {
		return articleSort;
	}

	public void setArticleSort(Integer articleSort) {
		this.articleSort = articleSort;
	}

	public String getArticleContent() {
		return articleContent;
	}

	public void setArticleContent(String articleContent) {
		this.articleContent = articleContent;
	}

	public Integer getArticleVisit() {
		return articleVisit;
	}

	public void setArticleVisit(Integer articleVisit) {
		this.articleVisit = articleVisit;
	}

	public Integer getArticleStatus() {
		return articleStatus;
	}

	public void setArticleStatus(Integer articleStatus) {
		this.articleStatus = articleStatus;
	}

	public Integer getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Integer createTime) {
		this.createTime = createTime;
	}

	public Integer getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Integer updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getDeleteTime() {
		return deleteTime;
	}

	public void setDeleteTime(Integer deleteTime) {
		this.deleteTime = deleteTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "BlogArticle{" +
			"id=" + id +
			", articleKey=" + articleKey +
			", articleTitle=" + articleTitle +
			", articleAuthor=" + articleAuthor +
			", articleInfo=" + articleInfo +
			", articleCover=" + articleCover +
			", articleOrigin=" + articleOrigin +
			", articleSort=" + articleSort +
			", articleContent=" + articleContent +
			", articleVisit=" + articleVisit +
			", articleStatus=" + articleStatus +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			", deleteTime=" + deleteTime +
			"}";
	}
}
